package com.qf.demo;

import com.qf.dao.OrderDao;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class OrderDaoTest {
    public static void main(String[] args) {
        ApplicationContext applicationContext
                = new ClassPathXmlApplicationContext("bean.xml");

        OrderDao orderDao = (OrderDao) applicationContext.getBean("orderFactory");

        orderDao.addOrder();
    }

}
